
f = open('notes.txt', 'r')
f_out = open('notes2.txt', 'w')

for line in f:
    for word in line.split():
        if (word != ' '):
            f_out.write(word + ' ')
    #print(line)